<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv=Content-Type content="text/html;charset=utf-8" />
        <title>{$title}</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="format-detection" content="telephone=no">
        <link href="{$docroot}static/css/wshop_main_style.css?v={$cssversion}" type="text/css" rel="Stylesheet" />
        <link href="{$docroot}static/css/wshop_uc_style.css?v={$cssversion}" type="text/css" rel="Stylesheet" />
        <link href="{$docroot}static/css/common.css?v={$cssversion}" type="text/css" rel="Stylesheet" />
        <script type="text/javascript" src="{$docroot}static/script/jquery-2.1.1.min.js"></script>
        <script type="text/javascript" src="{$docroot}static/script/main.js?v={$cssversion}"></script>        
        <script type="text/javascript" src="{$docroot}static/script/crypto-sha1.js"></script>
        <script type="text/javascript" src="{$docroot}static/script/crypto-md5.js"></script>
        <script type="text/javascript" src="{$docroot}static/script/cart.js?v={$cssversion}"></script>
    </head>
    <body style="margin-bottom: 20px;">
        <div id="addrPick"></div>
        <input type="hidden" id="payOn" value="{if $config.wechatVerifyed}1{else}0{/if}" />
        <input type="hidden" id="paycallurl" value="{$docroot}?/Order/ajaxGetBizPackage" />
        <input type="hidden" id="paycallorderurl" value="{$docroot}?/Order/ajaxCreateOrder" />

        <div id="cat-orderlist">收货信息：</div>

        <div id="express_address" href="javascript:;" onclick="addAddress()">
            <div id="wrp-btn">点击选择收货地址</div>
            <div class="express-person-info clearfix">
                <div class="express-person-name">
                    <span id="express-name"></span><span id="express-person-phone"></span>
                </div>
            </div>
            <div class="express-address-info">
                <span id="express-address"></span>
            </div>
        </div>

        <div id="cat-orderlist">订单信息：</div>

        <div id="orderDetailsWrapper" data-minheight="68px"></div>

        <div style="margin:15px;margin-bottom: 0">
            <div class="gs-label">订单备注：{* <span style="color:#900;">（请填写<b>身份证</b>和<b>真实姓名</b>）</span>*}</div>
            <span class="frm_textarea_box"><textarea class="js_desc frm_textarea" id="pd-form-leword"></textarea></span>
        </div>

        <div id="orderSummay">
            <div style="display: none">
                <input type="checkbox" id="cart-balance-check"/> 使用余额 <b id="cart-balance-pay">{$userInfo['balance']}</b>
            </div>
            {*            <div>
            运费 : <b class="prices" id="order_yunfei" style="color:#ca0606;">&yen;0</b>
            </div>*}
            <div>
                总计 : <b class="prices" id="order_amount" style="color:#ca0606;">&yen;0</b>
            </div>
        </div>

        <a class="button green" id="wechat-payment-btn" href="javascript:;" onclick="wepayCall({$config.wechatVerifyed});">{if !$config.wechatVerifyed}马上下单{else}微信安全支付{/if}</a>

        <div id="loading-wrap"></div>
        <script type="text/javascript">
            WeixinJSBridgeReady(loadCartData);
        </script>
        <script type="text/javascript">
            function addAddress()
            {
            {if $config.wechatVerifyed}
                WeixinJSBridge.invoke('editAddress', {
                    "appId": "{$appid}",
                    "scope": "jsapi_address",
                    "signType": "sha1",
                    "addrSign": "{$addrsign}",
                    "timeStamp": "{$timestamp}",
                    "nonceStr": "{$nonceStr}"
                }, addAddressCallback);
            {else}
            pickAddress();
            {/if}
            }
        </script>
        {include file="../global/footer.tpl"}
    </body>
</html>